package com.zbkj.front.pub.mszs;

import com.zbkj.common.response.CommonResult;
import com.zbkj.service.service.config.SystemConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 民宿助手-移动端-公共接口
 * @author lingfe
 */
@Slf4j
@RestController()
@RequestMapping("api/public/mszs")
@Api(tags = "民宿助手-公共接口")
public class MszsPublicController {

    @Autowired
    private SystemConfigService systemConfigService;

    @ApiOperation(value = "使用协议")
    @RequestMapping(value = "/getAgreement", method = RequestMethod.GET)
    public CommonResult<Object> getAgreement() {
        Object obj=systemConfigService.getValueByKey("mszsAgreement");
        return CommonResult.success(obj);
    }

}
